home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP - Can C++ read a Synchronous Data stream?
- Date: 31 Jan 1996 17:18:19 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4eo88r$kmc@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 30, 1996 20:37:53 in article <HELP - Can C++ resd a Synchronous Data
- stream?>, 'Joe Cardani <IE17N1L@TJUVM.tju.edu>' wrote:
-
-
- >
- >I'm considering purchasing C++ and learning the language in order
- >to program a specific application.
- >
- >I wish to read a continuous data stream from the
- >COM 1 port of thePC (which is synchronous)
- >buffer the contents, and search for a specific word in the buffer.
- >Then convert the binary to HEX and print it out. Is this someting
- >that C++ can handle.
- >
- Yes, and no. The language does not deal with operating system
- specific functions; i.e., reading comm ports. Many (all?)
- compiler vendors for DOS, however, provide some means of
- accomplishing it -- I assume DOS from the content of your
- question, sorry if I'm wrong.
-
- Regarding "convert the binary to HEX and print it out", I can't
- say with 100% certainty as it is unclear as to what you mean.
- If you're talking about displaying an integer in hex notation
- rather than the usual base 10, then yes, of course. But you're
- talking about reading words and converting the binary to
- hex. I'm fairly sure that C++ 'can handle it'.
-
- --
- Pete Grant
- Kalevi, Inc.
- Object Oriented Software Development
-